﻿package net.wangit.view.enumeration;

import net.wangit.framework.exception.NestableRuntimeException;

public class EnumerationConfigurationException extends NestableRuntimeException {

	private static final long serialVersionUID = 1L;
	private String prop;

	public EnumerationConfigurationException(String s) {
		super(s);
	}

	public EnumerationConfigurationException(String s, Throwable cause) {
		super(s, cause);
	}

	public EnumerationConfigurationException(String s, String domain,
			String enumerationId, String prop, Throwable cause) {
		super((new StringBuilder(String.valueOf(s))).append(
				"\nenumeration configuration error: please check ")
				.append(prop).append(" in ").append(domain).append("/").append(
						enumerationId).toString(), cause);
		this.prop = prop;
	}

	public String getProp() {
		return prop;
	}
}
